/**
 *Filename: index.scss
 *Author: xhh
 *Description: 首页，还没有编译的文件，用的是sass语法写
 *Date: 2018.03.19
 */
// 引入统一，清除各浏览器的默认和差异性
@import "reset.scss";
// 引入公用
@import "base.scss";
/* 首页主体部分 start */
// 轮播图部分
.site-content-carousel {
    position: relative; 
    height: 50rem;
    overflow: hidden;
    & >.site-carousel-inner {
        height: 100%;
        & >.item {
            display: none;
            width: 100%;
            height: 100%;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
        } 
        & > .active {
            display: block;
        }
    }
    .site-carousel-slogan {
        position: absolute;
        top: 36%;
        left: 0;
        width: 100%;
        text-align: center;
        h2 {
            font-size: 5.4rem;
            font-weight: 500;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: -8px 5px 15px rgba(0,0,0,0.3);
            transform: scaleY(1.2);
        }
        p {
            margin: 1rem 0 4rem;
            font-size: 1.2rem;
            font-weight: 500;
            color: #fff;
        }
        a {
            padding: 1rem 1.4rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 1.1rem;
            color: #000;
            background-color: rgba($color: #fff, $alpha: .8);
            &:hover {
                background-color: #fff;
                text-decoration: underline;
            }
        }
    }
    // 图片张数小圆点的
    & > .site-carousel-indicators {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translate(-50%,0); // 水平居中
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: .4rem 1rem;
        border-radius: 40px;
        background-color: rgba(0,0,0,.5);
        li {
            height: .6rem;
            width: .6rem;
            margin: 0 .3rem;
            border-radius: 50%;
            cursor: pointer;
            background-color: #c4b9a8;
        }
        & .active {
            background-color: #000;
        }
  }
    // 控制上一张下一张按钮公用
    .carousel-control {
        display: none;
        position: absolute;
        top: 50%;
        transform: translate(0,-50%);
        height: 76px;
        width: 52px;
        cursor: pointer;
        background-color: rgba(0,0,0,.5);
        // 按钮背景图
        .glyphicon {
            display: inline-block;
            width: 1.5rem;
            height: 3.125rem;
            margin: .75rem;
            background-image: url(../img/index/icon/icon_carousel.png);
            background-repeat: no-repeat;
        }
        &:hover {
            transition: all .3s linear;
            background-color: rgba(0, 0, 0, .8);
        }
  }
    // 上一张按钮
    .carousel-control-pre {
        left: 10%;
        & > .glyphicon {
            background-position: 0 -85px;
        }
  }
    // 下一张按钮
    .carousel-control-next {
        right: 10%;
        & > .glyphicon {
            background-position: 0 -35px;
        }
  }
}
// 背景渐变
.site-middle-content {
    // background: url(../img/index/bg/body_bg.png) repeat-x 0 190px;
   background: linear-gradient(#fff, #CFCFCF 55%,#FAFAFA,#fff);  
}
// 热销产品部分
.site-hot-goods {
    position: relative;
    z-index: 999;
    .hot-goods-list {
        display: flex;
        justify-content: space-around;
        position: relative;
        top: -4rem;
        width: 90%;
        margin: 0 auto;
        background-color: #fff;
        .hot-goods-one {
            position: relative;
            img{
                transition: all .5s linear;
            }
            &:hover {
                img {
                    transition: all .5s ease-out;
                    transform: scale(1.05,1.05);
                }
            }
        }
        .hot-goods-top {
            position: relative;
            &:hover {
                a {
                    >img {
                        transform: scale(1.1,1.1);
                        transition: all .5s linear;
                    }
                }
            }
        }
        .hot-goods-bottom {
            position: relative;
            &:hover {
                img {
                    transform: scale(1.1,1.1);
                    transition: all .5s linear;
                }
            }
        }
        .hot-goods-two {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            margin-left: 1%;
            img {
                transition: all .5s linear;
            }
        }
        div {
            overflow: hidden;
        }
        img {
            max-width: 100%;
        }
    }
    &:before {
        content: '';
        display: inline-block;
        position: absolute;
        top: -4.8rem;
        left: 50%;
        height: 5rem;
        width: 92%;
        background-color: #fff;
        transform: translate(-50%,0);
    }
    a {
        color: #000;
    }
    .hot-goods-one-txt {
        position: absolute;
        top: 50%;
        left:5%;
        width: 82%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 4%;
        background-color: rgba($color: #fff, $alpha: .8);
        transform: translate(0,-50%);
        h2 {
            font-size: 2.4rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
        }
        p {
            letter-spacing: 2px;
            margin-bottom: 3.2rem;
            font-size: .875rem;
            font-style: italic;
            position: relative;
            &:before {
                content: '';
                position: absolute;
                bottom: -1.6rem;
                left: 50%;
                width: 2.2rem;
                height: 1px;
                background-color: #000;
                transform: translate(-50%,0);
            }
        }
        a {
            border: 1px solid #000;
            padding: .4rem .5rem;
            font-size: .875rem;
            letter-spacing: 2px;
            transition: all .3s linear;
            &:hover {
                background-color: #000;
                color: #fff;
            }
        }
    }
    .hot-goods-two-txt1 {
        position: absolute;
        top: 50%;
        left:5%;
        transform:translate(0,-50%);
        img {
            max-width: 80%;
        }
    }
    .hot-goods-two-txt2 {
        position: absolute;
        top: 40%;
        right:0;
        width: 82%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        padding: 2rem 4%;
        transform: translate(0,-50%);
        color: rgba($color: #fff, $alpha: .8);
        h2 {
            font-size: 3.4rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            em{
                padding-right: 1rem;
            }
        }
        p {
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 3.2rem;
            font-size: .875rem;
            position: relative;
            &:before {
                content: '';
                position: absolute;
                bottom: -1.6rem;
                right: 0;
                width: 2.2rem;
                height: 2px;
                background-color: rgba($color: #fff, $alpha: .8);
            }
        }
        a {
            border: 1px solid rgba($color: #fff, $alpha: .8);
            padding: .4rem .5rem;
            font-size: .875rem;
            letter-spacing: 2px;
            color: #fff;
            transition: all .3s linear;
            &:hover{
                background-color: rgba($color: #fff, $alpha: .8);
                color: #000;
            }
        }
    }
}
// 钻石产品公用部分
.site-diamonds-goods {
    // 头部
    .diamonds-header {
        text-align: center;
        text-transform: uppercase;
        .diamonds-title {
            margin-bottom: .6rem;
            font-size: 1.3rem;
            letter-spacing: 2px;
        }
         .diamonds-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .75rem;
            i {
                display: inline-block;
                width: 16px;
                height: 16px;
                background-image: url(../img/index/icon/icon_other.png);
                background-repeat: no-repeat;
                cursor: pointer;
                background-size: cover;
            }
            span {
                padding: 0 .6rem;
            }
        }
    }
    // 内容
    .diamonds-content {
        margin-top: 2rem;
        overflow: hidden;
        .diamonds-list {
            display: flex;
            width: 100%;
            position: relative;
            left: 0;
        }
        .diamonds-item {
            min-width: 25%;
            a {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }
        }
        .diamonds-img {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 94%;
            padding: .5rem 0;
            overflow: hidden;
            background-color: #fff;
            box-sizing: border-box;
            img {
                max-width: 94%;
                transition: all .3s linear;
            }
            &:hover {
                box-shadow: 0 0 14px #ddd;
                img {
                    transform: scale(1.08,1.08);
                }
            }
        }
        .diamonds-info {
            margin-top: 1rem;
            font-size: .875rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .diamonds-score {
            padding: .4rem 0;
        }
    }
}
// 裸钻部分 
.common-diamonds {
    // 裸钻头部
    .diamonds-header {
        color: #000;;
    }
    // 裸钻内容
    .diamonds-content {
        .diamonds-img {
            border-top: 1rem solid  #fff;
            border-bottom: 1rem solid #fff;
        }
        .diamonds-info {
            color: #000;
        }
    }
    .icon-pre {
        background-position: 0 -48px;
    }
    .icon-next {
        background-position: 0 -64px;
    }
}
// 彩钻部分
.color-diamonds {
    margin-top: 4%;
    // 裸钻头部
    .diamonds-header {
        color: #000;;
    }
    // 裸钻内容
    .diamonds-content {
        .diamonds-img {
            border-top: 1rem solid  #DCDCDC;
            border-bottom: 1rem solid #DCDCDC;
        }
        .diamonds-info {
            color: #000;
        }
    }
    .icon-pre {
        background-position: 0 -48px;
    }
    .icon-next {
        background-position: 0 -64px;
    }
}
// 广告背景部分
.site-banner {
    margin-top: 3%;
    .site-banner-box {
        background-image: url(../img/index/bg/banner.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        padding-top: 12%;
        .wrapper{
            text-align: center;
            max-width: 80%;
            margin-top: -7%;
            font-size: 1.4rem;
            font-style: italic;
            text-transform: uppercase;
            color: #fff;
            letter-spacing: 2px;
        }
        p {
            margin-bottom: 1rem;
        }
    }
}
// 总产品列表部分
.site-all-goods {
    margin-top: 3%;
    .all-goods-header {
        text-align: center;
        h2 {
            font-size: 1.2rem;
        }
        p {
            margin-top: 1%;
            font-size: .875rem;
        }
    }
    .all-goods-list {
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin-top: 3%;
    }
    .all-goods-item {
        flex-grow: 1;
        a {
            color: #666;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .goods-img {
            max-width: 100%;
            transform: scale(1,1);
            transition: all .4s linear;
            &:hover {
                transform: scale(1.1,1.1);
                transition: all .4s linear;
            }
        }
        .goods-name {
            margin-top: 1.2rem;
            font-size: 1rem;
            font-weight: normal;
        }
        .goods-en {
            padding-top: .4rem;
            font-size: .875rem;
            text-transform: uppercase;
        }
    }
}
// 资料链接部分
.site-info-links {
    margin-top: 4%;
    .info-links-list {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .info-links-item {
        flex-grow: 1;
        text-align: center;
        display: flex;
        justify-content: center;
        a {
            color: #666;
        }
        img {
            max-width: 100%;
        }
    }
}
// 联系我们部分
.site-contactus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 16%;
    margin-top: 4%;
    background-image: url(../img/index/bg/contactus.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    .contactus-content {
        color: #fff;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        text-align: center;
    }
    .icon-send {
        display: inline-block;
        height: 30px;
        width: 30px;
        background: url(../img/index/icon/icon_other.png) no-repeat 0 0;
    }
    h3 {
        text-align: center;
        font-size: 1.25rem;
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 2px;
        margin-top: 1rem;
    }
    .contactus-input-box {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba($color: #fff, $alpha: .8);
        margin-top: 2.4rem;
        box-sizing: border-box;
        input {
            width: 80%;
            border: 0 none;
            background-color: transparent;
            outline: none;
            color: #fff;
            line-height: 1.6;
            font-size: 1.2rem;
            text-indent: .4rem;
        }
        button {
            padding: 0 1.4rem;
            border: 0 none;
            background-color: #fff;
            &:hover {
                transition: all .3s linear;
                background-color: #ccc;
                cursor: pointer;
            }
        }
    }
}
/* 首页主体部分 end */


/* css3的媒体查询 start */
/* 768px~979px显示的 start */
@media (min-width: 768px) and (max-width: 979px) { 

}
/* 768px~979px显示的 end */
/* 小于767px显示的 start */
@media (max-width: 767px) { 
}
/* 小于767px显示的 end */
/* 小于500px显示的 start */
@media (max-width: 520px) {
    /* 首页头部 start */
    .site-header {
        .wrapper {
            // 网站头部右边部分
            .site-header-right {
                .site-header-fun {
                    i {
                        margin-left: .8rem;
                    }
                    .icon-login {
                        background-position: 0 2px;
                    }
                    .icon-search {
                        background-position: 0 -18px;
                    }
                    .icon-love {
                        background-position: 0 -38px;
                    }
                    .icon-shipping {
                        background-position: 0 -60px;
                    }
                }
            }
        }
    }
    /* 首页头部 end */
    .site-content-carousel {
        height: auto;
        & > .carousel-control {
            display: none;
            opacity: 0;
        }
        & >.site-carousel-inner {
        & >.item {
                height: auto;
                overflow: hidden;
            img {
                max-width: 100%;
            }
        }
        }
        & > .site-carousel-indicators {
            bottom: 5px;
            padding: .2rem .5rem;
            li {
                display: inline-block;
                height: .5em;
                width: .5em;
                margin: 0 .2em;
            }
        }
    }
    // 热销产品部分
    .site-hot-goods {
        .hot-goods-list {
            top: -1.75rem;
        }
        &:before {
            top: -2.2rem;
            height: 3rem;
            width: 92%;
        }
        .hot-goods-one-txt {
            padding: 1rem 3%;
            h2 {
                font-size: 1rem;
            }
            p {
                letter-spacing: 1px;
                margin-bottom: 1.2rem;
                &:before {
                    bottom: -.6rem;
                }
            }
            a {
                padding: .2rem .3rem;
                font-size: .75rem;
            }
        }
        .hot-goods-two-txt1 {
            img {
                max-width: 60%;
            }
        }
        .hot-goods-two-txt2 {
            padding: 1rem 3%;
            width: 90%;
            h2 {
                font-size: 1.4rem;
                margin-bottom: .4rem;
                em{
                    padding-right: 1rem;
                }
            }
            p {
                letter-spacing: 0;
                margin-bottom: 2.2rem;
                font-size: .75rem;
                &:before {
                    bottom: -1rem;
                    right: 0;
                    height: 1px;
                }
            }
            span {
                padding: .2rem .3rem;
                font-size: .75rem;
            }
        }
    }
    // 广告背景部分
    .site-banner {
        .site-banner-box {
            padding-top: 20%;
            .wrapper{
                max-width: 100%;
                margin-top: -15%;
                font-size: 1rem;
                letter-spacing: 0;
            }
        }
    }
    // 总产品列表部分
    .site-all-goods {
        .all-goods-list {
            flex-wrap: wrap;
        }   
        .all-goods-item {
            width: 20%;
        } 
    }
    // 总产品列表部分
    .site-all-goods {
        .all-goods-item {
            .goods-img {
                max-width: 40%;
            }
        }
    }
    // 资料链接部分
    .site-info-links {
        margin-top: 6%;
        .info-links-item {
            .icon-demo {
                height: 2rem;
                width: 2rem;
            }
        }
    }
    // 联系我们部分
    .site-contactus {
        padding-top: 30%;
        .icon-send {
            display: none;
        }
        h3 {
            font-size: 1rem;
            font-weight: 400;
        }
        .contactus-input-box {
            margin-top: 1.4rem;
            input {
                line-height: 1.4;
                font-size: 1rem;
            }
            button {
                padding: 0 .5rem;
            }
        }
    }
    /* 登陆框 start */
    .site-login-wrapper {
        padding: 5% 10%;
    }
    /* 登陆框 end */
}
/* 小于500px显示的 end */
/* css3的媒体查询 end */
